package com.qiang.demo01;

import java.util.ArrayList;

public class Test01 {
    public static void main(String[] args) {
        ArrayList<Integer> array = new ArrayList<>();
        array.add(1);
        array.add(2);
        array.add(3);
        array.add(4);
       /* boolean empty = array.isEmpty();
        System.out.println(empty);
        System.out.println("------");*/

        /*Integer remove = array.remove(1);
        System.out.println(remove);*/

        /*System.out.println(array);*/

        boolean b = array.removeIf((Integer in) -> {
            return in > 2;
        });
        System.out.println(array);
        System.out.println("------");
        System.out.println(b);
        System.out.println("------");

        System.out.println(array);
        System.out.println("------");


       /* ArrayList<String> arr = new ArrayList<>();
        arr.add("qwe");
        arr.add("asd");
        arr.add("zxc");
        boolean b1 = arr.removeIf((String str) -> {
            return str == "qwe";
        });
        System.out.println(arr);
        System.out.println("------");*/


    }


}
